import configparser
import os

path = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "config", "settings.ini")


def read_ini():
    # 实例化
    config = configparser.ConfigParser()
    # 读取文件
    config.read(path, encoding="utf-8")
    return config

# print(read_ini()['host']['api_sit_url'])
